#include "./udp/udp_maker.h"
#include "./ip/ip_maker.h"
int main()
{
    uint16_t dport = 0x1011;
    uint16_t sport = 0x1011;
    uint16_t len = 8;
    uint8_t buf[] = {};
    uint8_t sip[] = {1, 1, 1, 1};
    uint8_t dip[] = {1, 1, 1, 1};
    uint8_t *udp_pck = udp_maker(dport, sport, len, buf, sizeof(buf), sip, dip);
    print_arr(udp_pck, 8, 'x');
    print_arr((&udp_pck[6]), 2, 'x');

    char * ip_head = ip_maker(8,0,sip,dip);
    print_arr(ip_head,sizeof(struct iphdr),'x');
    // 0x2a3a
}